package com.huangxi.application;

import com.huangxi.repository.DeptRepository;
import com.huangxi.repository.EmpRepository;
import org.springframework.stereotype.Service;

@Service
public class QueryDslService {

    private final DeptRepository deptRepository;
    private final EmpRepository empRepository;

    public QueryDslService(DeptRepository deptRepository, EmpRepository empRepository) {
        this.deptRepository = deptRepository;
        this.empRepository = empRepository;
    }

    public void test(){
        this.empRepository.findAll();
        this.deptRepository.findAll();
    }
}
